{include file="header.tpl"}

{if isset($info_action)}
	<div class="info i_red">
		{$info_action}
	</div>
{/if}	
<h3>Studenci</h3>
<div class="practices_div">
	<table class="practices_tab">
		<tr style="color:#789;font-weight: bold">
			<td>Lp.</td>
			<td>Data rejestracji</td>
			<td>Imię</td>
			<td>Nazwisko</td>
			<td>Email</td>
			<td>Numer albumu</td>
			<td>Akcje</td>
		</tr>
		{foreach item = student from = $students name = student}
		<tr style="background-color:{cycle values=#F6F6F6,white}">
			<td>{$smarty.foreach.student.iteration}</td>
			<td>{$student.reg_date}</td>
			<td>{$student.name}</td>
			<td>{$student.surname}</td>
			<td>{$student.email}</td>
			<td>{$student.album_nr}</td>
			<td>

				<a href ="users.php?show_id={$student.id}" class="tip_trigger" ><span class="tip">Pokaż szczegóły</span><img src="../images/magnifier-left.png"/></a>
				&nbsp 			
				<a href ="users.php?remove_id={$student.id}" class="tip_trigger" ><span class="tip">Usuń studenta</span><img src="../images/cross.png"/></a>
				
			</td>
		</tr>
		{/foreach}
	<table>
</div>

{include file="footer.tpl"}